/*
 *  User.java 
 *    
 *    Copyright 2012 YAWP Project Team
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package com.googlecode.yawp.model;

/**
 * This class represents a single user of the YAWP application
 * 
 * @author Dan Spuches
 *
 */
public class User {
	private String name;						// user's name
	private Preferences prefs;					// user's preferences
	//private JournalEntryCollection journal;		// collection of JournalEntries
	//private ArrayList<String> journalCategories;		// list of journal categories

	
	/**
	 * Constructor for user that passes a Preferences object to the constructor
	 * 
	 * @param name User's name
	 * @param prefs User's preferences
	 */
	public User(String name, Preferences prefs) {
		this.name = name;
		this.prefs = prefs;
		this.name = name;
		//journal = new JournalEntryCollection();
		//this.journalCategories = journalCategories;
	}
		
	/**
	 * Standard getter method for user's name
	 * 
	 * @return User's name
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Standard setter method for user's name
	 * 
	 * @param name User's name
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	
	/**
	 * Standard getter method for user preferences
	 * 
	 * @return The user's preferences
	 */
	public Preferences getPreferences() {
		return prefs;
	}
	
	/**
	 * Standard setter method for the user's preferences
	 * 
	 * @param prefs The user's preferences
	 */
	public void setPreferences(Preferences prefs) {
		this.prefs = prefs;
	}
	
	
}
